import { prop, modelOptions } from '@typegoose/typegoose';
import { ApiProperty } from '@nestjs/swagger';

@modelOptions({
  schemaOptions: {
    timestamps: true,
  },
})
export class User {
  // okok
  @ApiProperty({ description: '用户名', example: 'user_1' })
  @prop()
  // 用户名
  username: string;

  @ApiProperty({ description: '密码', example: '123456' })
  @prop()
  /**
   * 密码
   */
  password: string;
}
